package com.wish.wishfinancial_service.controller;


import com.wish.wishfinancial_service.entity.TJrProduct;
import com.wish.wishfinancial_service.service.ITJrProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author weijiaz
 * @since 2021-04-10
 */
@RestController
@RequestMapping("/tJrProduct")
public class TJrProductController {

    @Autowired
    private  ITJrProductService iJrProductService;

    /**
     * 金融产品初始化
     * @return
     */
    @RequestMapping("/searchSfProduct")
    public ResultEntity searchSfProduct() {
        List<TJrProduct> jrProductList = iJrProductService.searchSfProduct();
        return ResultEntity.ok("200","查询合同成功",jrProductList);
    }


}

